package main

import (
	"fmt"
	"gitee.com/mootok/mootok/src/models"
	"gitee.com/mootok/mootok/src/storage/clickhouse"
)

func main() {
	err := clickhouse.Client.AutoMigrate(
		&models.ReportedVideoPlay{},
		&models.ReportedVideoShare{},
		&models.ReportedVideoShareClick{},
	)

	if err != nil {
		panic(fmt.Errorf("db migrate failed: %v", err))
	}

}
